package org.middlewaregr.bp;

import org.jbpm.api.Configuration;

public class StaticProcessEngine {
	public static org.jbpm.api.ProcessEngine processEngine;

	public static org.jbpm.api.ProcessEngine getInstance() {
		if (processEngine == null) {
			processEngine = new Configuration().setResource("my.jbpm.cfg.xml")
					.buildProcessEngine();
		}
		return processEngine;
	}
}
